Latest Questions

How to fix gradle error in flutter project

I am getting this gradle error when running flutter project: I am using code from github for flutter pdf view and also using firebase for it. Launching lib\main

Why is this memoized Pascal's Triangle recursion not as fast as expected?

Referencing this article on Memoization, I believe that this approach uses memoization, and should be fast. However, it doesn't seem to be the case here: pascal

Error when observing on uniform with sampled parameters in PyMC

I’m new to PyMC and am trying to model a situation where you are rolling marbles at a wall and trying to find the block. The data is only for the values w

ConfigureAwait(false) and struct implementation of IAsyncDisposable

I have implemented IAsyncDisposable with an ActionOnAsyncDispose struct as shown below. My understanding is that the compiler will not box it when it is in an a

Detect if block is given in Ruby define_method block

When searching, keywords 'block' and ruby 'define_method' keep telling me to explicitly define + call the block. Tried a bunch of stuff, including looking at so

Ensure that there is only one instance of "graphql" in the node_modules directory

While trying to download the schema using npm run schema:download I am receiving the following error. [email protected] schema:download npx apollo service:download

Hardhat compile error "Expected a value of type HttpNetworkConfig"

I'm attempting to follow the NFT tutorial here. I have set up the accounts on Alchemy and Metamask created the .sol file. I have a .env file in root that look

How to catch a FFMPEG exception with subprocess?

I'm doing some work on subtitles and some videos have 1 subtitle track, others have 2 subtitle tracks. For those that have 2, I use the 2nd one (index = 1). I'm

Error when trying to use count and group by

Here is my query: SELECT DISTINCT takes.semester, takes.sec_id, takes.course_id, instructor.name, COUNT(takes.ID) FROM takes INNER JOIN teaches ON takes.cour

Can't fetch user info from Keycloak using Python on docker compose

I need to run, from docker compose, three containers: a fastapi server, a keycloack server and a postgres database. This works well if I run the uvicorn command

Trying to represent hashtags in a bar chart

I have downloaded tweets and I am trying to represent the different hashtags and how often they are tweeted. Some data screen_name location text

Android Studio Kotlin app "keeps stopping" when I run it

I am just trying to set up a spinner configured as a dropdown menu, but I can't even test my app to see if it works because every time I run it, it immediately

React Native iOS "Show Inspector" pushed to the bottom of screen

The "Show Inspector" hud overlay is pushed to the bottom of the screen (see image), how can I open it correct? I've tried clicking on the tabs and dragging it b

Manage Taskbar Align Windows 11 - Powershell

I want align the taskbar of windows 11 to the left side using PowerShell. I did this: New-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer

Synchronize NAudio playback to multiple devices

I am trying to write a program which synchronizes playback of an audio file (MP3) using NAudio. I've wrote a sync method which kicks in every 5 seconds to repos

why flutter give me url null in url launcher?

ElevatedButton( onPressed: () async { const url ='https://www.facebook.com'; if (await canLaunch(url)) { await launch(url,forceWebView: true,en

PowerShell: force password change at the next logon for multiple users

I'm new to PowerShell and am still learning the ropes. I want to create a script for work that I can force a change at the next logon for many users. I have thi

How to get the value of a python script I run through ssh

I am using 2 raspberry pi and each of them has a camera connected. I am trying to run, from the first pi, a script to get the video feed of the second one. And

Make a radiobutton list for the stored rpivottable configuration name

The following is a link to a code that allows you to make several configuration savings, which you can load anytime as long as you don't clear your cookies. I w

In Minkube mulitple namespaces why NetworkPolicy is not working

I'm using minikube and created the following resources Two namespaces qa and prod Created curlpod in qa namespace, also curlpod and web pod in prod namespace. C

Cartopy Cimgt not retrieving tiles within PySpark notebook

Cartopy version 0.18.0. This works in a juptyer notebook: import cartopy.io.img_tiles as cimgt import matplotlib.pyplot as plt extent =[-94, -84, 43, 37] reque

How ListView scroll to bottom accurately?

It seems Controller.position.maxScrollExtent is a predicted value since the bottom items haven't been rendered,Controller.jumpTo(Controller.position.maxScrollEx

Ionic 6 - localization of Google Maps API

I am using Angular 13 and Ionic 6 to add Google Maps API V3. Here is a simple example provided by Google to add the map using TypeScript. When using Ionic, I am

Mongoose and Next.js: Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'Token')

I basically defined this Model, much like another which doesn't error out; So I am stumped as to why it's not working... Here is a Minimal, Reproducible Example

Get selected value in dropdown list using JavaScript

How do I get the selected value from a dropdown list using JavaScript? I tried the methods below, but they all return the selected index instead of the value:

How to create random pass names in ffmpeg?

Normally, when using ffmpeg, you define a name for the "pass" information to be stored in a file when enconding videos with 2 (or more) passes, e.g.: ffmpeg -i

Python 3 does not show the barchart

I am trying to make this bargraph appear in the python run screen. But for some reason, it does not show the graph on the screen. However, if I put this code on

How to solve the error FAILURE: Build failed with an exception. * Where: Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005

I'm trying to run the application in the android emulator but this error keeps popping. FAILURE: Build failed with an exception. * Where: Script 'C:\flutte

AppleScript to add Application to Full Disk Access

To install Sophos Endpoint on MacOS, it requires adding Sophos Files to Full Disc Access. I have a beginning script to open Security Preferences, go to Security

dspace 7 java.lang.NullPointerException . /core/sites failing with internal server error

Trying to setup D space 7 in windows 2022 server Backend running in tomcat Localhost:8080/server Front end running in localhost:4000 port With the above model ,